package com.aikon.wht.designPattern.decorator;

/**
 * Created by haitao.wang on 2016/12/7.
 */
public class TestOfDecorator {
    public static void main(String[] args) {
        Beverage beverage = new mochaDecorator(new DarkRoast("darkRoast"));
        System.out.println(beverage.getDescription() + beverage.cost());
        Human human = new ActionHumanDecorator(new Black());
        System.out.println(human.eat());
        System.out.println(Runtime.getRuntime().maxMemory());



    }
}
